import service from '../utils/axios'
interface ApiResponse {
    code: number;
    data?: any;
    message?: string;
}

/**
 * 首页
 */
// 获取场地信息
export const getScreenExaminationRoom = (): Promise<ApiResponse> => {
    return service.get('screen/station/getScreenExaminationRoom')
}
// 人员信息
export const getScreenExaminationRoomTimesPlayerList = (id:number): Promise<ApiResponse> => {
    return service.get(`screen/station/getScreenExaminationRoomTimesPlayerList?id=${id}`)
}
// 装置详情
export const getScreenDeviceInfo = (): Promise<ApiResponse> => {
    return service.get(`screen/station/getScreenDeviceInfo`)
}
// 比赛信息
export const getScreenExaminationRoomTimesDeviceList = (): Promise<ApiResponse> => {
    return service.get(`screen/station/getScreenExaminationRoomTimes`)
}